# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Gabriel Martinez < reitaka at gmail dot com >

pkgname=libusbmuxd
pkgver=2.0.2
pkgrel=3
pkgdesc='Client library to multiplex connections from and to iOS devices'
arch=('loong64' 'x86_64')
url='https://libimobiledevice.org/'
license=('GPL2' 'LGPL2.1')
depends=('gcc-libs' 'glibc' 'libplist')
source=("https://github.com/libimobiledevice/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2")
sha256sums=('cc6a808553da4efa9fa5638be256d5ae020498795d9d260d280b87074e799b20')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
